package struts2.hanh;

import java.util.ArrayList;
import com.opensymphony.xwork2.ActionSupport;
import DAO.Dao_Programme;
import Entity.Programme;

public class ShowAction extends ActionSupport {
	private ArrayList<Programme> list = new ArrayList<Programme>();

	public String execute() {
		Dao_Programme det = new Dao_Programme();
		list = det.getProgram();
		return "success";
	}

	public ArrayList<Programme> getList() {
		return list;
	}

	public void setList(ArrayList<Programme> list) {
		this.list = list;
	}

}
